package com.neu.question.mapper;

import com.neu.question.domain.QuestionInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

/**
* @author nxwr0
* @description 针对表【question_info】的数据库操作Mapper
* @createDate 2022-11-04 12:25:24
* @Entity com.neu.question.domain.QuestionInfo
*/
@Mapper
public interface QuestionInfoMapper extends BaseMapper<QuestionInfo> {

    //添加题目
    int addQuestion(Map<String, Object> map);

    //根据题目标题模糊查询
    List<Map<String, Object>> getQuestionByTitle(Map<String, Object> map);

    //编辑题目
    int updateQuestion(Map<String, Object> map);

    //清除所有题目
    int deleteAllQuestion();

    //删除题目
    int deleteQuestion(Map<String, Object> map);

    //根据id查询题目
    Map<String, Object> getQuestionById(String id);
}




